import request from '@/utils/request'


// 我的团队 (查看我的pv值)
export function myTeamfc(data){
  return request({
    url:'/wx/pv/myTeamfc',
    method:'post',
    data:data
  })
}

// 我的pv值查看详情总体
export function myTeamDetails(data){
  return request({
    url:'/wx/pv/myTeamDetails',
    method:'post',
    data:data
  })
}

// 我的pv值查看详情 个人 订单
export function findOrders(data){
  return request({
    url:'https://api.dianmihl.com/shop2/wx/pv/findOrders',
    method:'post',
    params:data
  })
}

export function getMonthPv2(data){
  return new Promise((resolve,reject)=>{
    resolve(request({
      url:'https://hometasty.hk/demo/oderpv.php',
      method:'get',
      params:data
    }))
    
  })
   
}
export function getMonthPv(data){
  return request({
    url:'https://hometasty.hk/demo/oderpv.php',
    method:'get',
    params:data
  })
}
// 我的pv值查看详情 订单商品
export function ordersGoodsPv(data){
  return request({
    url:'/wx/pv/ordersGoodsPv',
    method:'post',
    data:data
  })
}

// 我的团队人员分布
export function getTeamFans(data){
  return request({
    url:'/wx/pv/getTeamFans',
    method:'post',
    data:data
  })
}

// 我的团队人员分布详细情况
export function getTeamFansLists(data){
  return request({
    url:'/wx/pv/getTeamFansList',
    method:'post',
    data:data
  })
}